<template>
  <div class="my_header">
      <span>
         <slot name="left"></slot>
      </span>
      <section>
          <slot name="center"></slot>
      </section>
      <span class="right">
          <slot name="right"></slot>
      </span>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
export default {
  setup() {},
};
</script>
<style lang="scss" scoped>
.my_header{
  display: flex;
  height: 50px;
  align-items: center;
  background: #6a99dd;
  color: #fff;
  span{
    width: 70px;
    text-align: center;
  }
  section{
    flex: 1;
    text-align: center;
  }
  .right{
    font-size: 12px;
  }
}
</style>